<input type="hidden" name="ifext" value="1" />
<script>
$(function () {
	/*给第一行添加样式*/
	$(".menu1box").find("li:eq(0)").addClass("hover");
	$(".main").find("dl:eq(0)").addClass("block");
});
</script>
<!-- $ext_editor AS $key=>$value -->
<table class="ctable">
<tr>
	<td class="left">{:$value[ext_name]}：</td>
	<td class="right">
		<input type="hidden" name="ext_id[]" value="{:$value[extid]}" />
		<input type="hidden" name="ext_sign[]" class="long_input" value="{:$value[sign]}" />
		<div class="menu1box">
		<ul id="menu_ext{:$value[extid]}" {if($value[ifshare]==1)}style="display:none;"{end}>
			<!-- if($system[jianti] == on) --><li onclick="setTab('_ext{:$value[extid]}',0)"><a href="javascript:void(0)">简体内容</a></li><!-- end -->
	        <!-- if($system[english] == on) --><li onclick="setTab('_ext{:$value[extid]}',1)"><a href="javascript:void(0)">英文内容</a></li><!-- end -->
            <!-- if($system[fanti] == on) --><li onclick="setTab('_ext{:$value[extid]}',2)"><a href="javascript:void(0)">繁体内容</a></li><!-- end -->
            <div class="clear"></div>
    	</ul>
		</div>
        
		<div class="main1box">
		<div class="main" id="main_ext{:$value[extid]}">
		<!-- if($_SESSION[admin][editorid]==0) -->
		<script type="text/javascript">
		<!-- if($system[jianti] == on) -->
		var editor_ext;
		$(pageInit);
		function pageInit()
		{
			editor_ext=$('#ext_content{:$value[extid]}').xheditor(tools);
		}
		<!-- end -->
		
		<!-- if($system[english] == on) -->
		var editor_ext_en;
		$(pageInit_en);
		function pageInit_en()
		{
			editor_ext_en=$('#ext_content_en{:$value[extid]}').xheditor(tools);
		}
		<!-- end -->
		
		<!-- if($system[fanti] == on) -->
		var editor_ext_ft;
		$(pageInit_ft);
		function pageInit_ft()
		{
			editor_ext_ft=$('#ext_content_ft{:$value[extid]}').xheditor(tools);
		}
		<!-- end -->
		</script>
		<!-- if($system[jianti] == on) -->
		<dl>
			<textarea id="ext_content{:$value[extid]}" name="ext_content[]" style="width:100%;">{:$value[ext_content]}</textarea>
		</dl>
		<!-- end -->
        <!-- if($system[english] == on) -->
        <dl>
			<textarea id="ext_content_en{:$value[extid]}" name="ext_content_en[]" style="width:100%;">{:$value[ext_content_en]}</textarea>
		</dl>
        <!-- end -->
        <!-- if($system[fanti] == on) -->
        <dl>
			<textarea id="ext_content_ft{:$value[extid]}" name="ext_content_ft[]" style="width:100%;">{:$value[ext_content_ft]}</textarea>
		</dl>
        <!-- end -->
		
		<!-- elseif($_SESSION[admin][editorid]==1) -->
		<script type="text/javascript">
		<!-- if($system[jianti] == on) -->
		var editor_ext = new UE.ui.Editor(); 
		editor_ext.render("myEditor_ext{:$value[extid]}");
		<!-- end -->
		
		<!-- if($system[english] == on) -->
		var editor_ext_en = new UE.ui.Editor(); 
		editor_ext_en.render("myEditor_ext_en{:$value[extid]}");
		<!-- end -->
		
		<!-- if($system[fanti] == on) -->
		var editor_ext_ft = new UE.ui.Editor(); 
		editor_ext_ft.render("myEditor_ext_ft{:$value[extid]}");
		<!-- end -->
		</script>
		<!-- if($system[jianti] == on) -->
		<dl>
        	<textarea id="myEditor_ext{:$value[extid]}" name="myEditor_ext{:$value[extid]}">{:$value[ext_content]}</textarea>
			<input type="hidden" name="ext_content[]" id="ext_content{:$value[extid]}" />
		</dl>
		<!-- end -->
		<!-- if($system[english] == on) -->
        <dl>
        	<textarea id="myEditor_ext_en{:$value[extid]}" name="myEditor_ext_en{:$value[extid]}">{:$value[ext_content_en]}</textarea>
			<input type="hidden" name="ext_content_en[]" id="ext_content_en{:$value[extid]}" />
		</dl>
        <!-- end -->
        <!-- if($system[fanti] == on) -->
        <dl>
        	<textarea id="myEditor_ext_ft{:$value[extid]}" name="myEditor_ext_ft{:$value[extid]}">{:$value[ext_content_ft]}</textarea>
			<input type="hidden" name="ext_content_ft[]" id="ext_content_ft{:$value[extid]}" />
		</dl>
        <!-- end -->
		<!-- end -->
		</div>
		</div>
	</td>
</tr>
</table>
<!-- end -->